<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    <title>个人信息</title>
    <link rel="stylesheet" th:href="@{/styles.css}" />
</head>

<body>
    <div>
    <span>当前登录</span>
	<span th:text=${user.username}></span>
	</div>
	<hr>
	
    <div class="title">
        <h1>个人信息</h1>
    </div>
    
    <div class="winfo">
    	<form action="/home/stuinfo" method="post" th:object="${stu}">
    		 <div class="info-demo">
                <span>姓名:</span>
                <input name="name" type="text">
            </div>
            <div class="info-demo">
                <span>学号：</span>
                <input type="text" name="id">
            </div>
            <div class="info-demo">
                <span>年级：</span>
                <input type="text" name="grade">
            </div>
            <div class="info-demo">
                <span>专业：</span>
                <input type="text" name="major">
            </div>
            <div class="info-demo">
                <span>学院：</span>
                <input type="text" name="department">
            </div>

            <div class="info-demo">
                <input type="submit" value="提交">
            </div>
    	
    	
    	</form>
    
    </div>

    <!-- 
    
    <form action="/home/user" method="post" th:object="${stu}">
        
            <div class="info-demo">
                <span>姓名:</span>
                <input name="name" type="text">
            </div>
            <div class="info-demo">
                <span>学号：</span>
                <input type="text" name="id">
            </div>
            <div class="info-demo">
                <span>年级：</span>
                <input type="text" name="grade">
            </div>
            <div class="info-demo">
                <span>专业：</span>
                <input type="text" name="major">
            </div>
            <div class="info-demo">
                <span>学院：</span>
                <input type="text" name="department">
            </div>

            <div class="info-demo">
                <input type="submit" value="提交">
            </div>



    </form>
    
    
    
    
    <div class="info">
        <div class="info-demo">
            <span>姓名:</span>
            <span>xxx</span>
        </div>
        <div class="info-demo">
            <span>学号：</span>
            <span>xxx</span>
        </div>
        <div class="info-demo">
            <span>年级：</span>
            <span>xxx</span>
        </div>
        <div class="info-demo">
            <span>专业：</span>
            <span>xxx</span>
        </div>

    </div> -->

</body>

</html>